<include file="Login:header" />

<div class="pad_lr_10" >
    <form name="searchform" method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        标题 :
                        <input name="title" type="text" class="input-text" size="25" value="{$search.title}" />
                        <input type="submit" name="search" class="btn" value="搜索" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="J_tablelist table_list">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width=60><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left">标题</span></th>
                <th width=60><span data-tdtype="order_by" data-field="hits">阅读量</span></th>
                <th width=150>作者</th>
                <th width=150><span data-tdtype="order_by" data-field="create_time">创建时间</span></th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td align="left">{$val.title}</td>
                    <td align="center"><b>{$val['hits']}</b></td>
                    <td align="center"><b>{$all_user[$val['user_id']]['user_name']}</b></td>
                    <td align="center">{:date('Y-m-d H:i:s',$val['create_time'])}</td>
                    <td align="center">
                        <a target="_blank" href="{:u('Home/demo/training', array('id'=>$val['id']))}">查看</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <if condition="$Think.get.perpage gt 10">
            <div style="height: 60px;"></div>
        </if>
        <div class="btn_wrap_fixed">
            <div id="pages">{$page}</div>
        </div>
    </div>
</div>
<include file="Login:footer" />
</body>
</html>